package com.appcheck.recording.handler.action;

import org.json.JSONException;
import org.json.JSONObject;

import com.appcheck.recording.action.ActionConvert;
import com.appcheck.recording.plugin.AbstractActionConverter;

public final class DragAction implements ActionConvert{
	private float fromX;
	private float fromY;
	private float toX;
	private float toY;
	private int stepsCount;
	private int dragTime;
	public final String toString(){
	    JSONObject localJSONObject = new JSONObject();
	    try{
	      localJSONObject.put("class", "DragAction");
	      localJSONObject.put("fromX", (int)this.fromX);
	      localJSONObject.put("fromY", (int)this.fromY);
	      localJSONObject.put("toX", (int)this.toX);
	      localJSONObject.put("toY", (int)this.toY);
	      localJSONObject.put("stepsCount", this.stepsCount);
	      localJSONObject.put("dragTime", this.dragTime);
	    }
	    catch (JSONException localJSONException) {}
	    return localJSONObject.toString();
	}
	public final void setFromX(float fromX) {
		this.fromX = fromX;
	}
	public final void setFromY(float fromY) {
		this.fromY = fromY;
	}
	public final void setToX(float toX) {
		this.toX = toX;
	}
	public final void setToY(float toY) {
		this.toY = toY;
	}
	public final void setStepsCount(int stepsCount) {
		this.stepsCount = stepsCount;
	}
	public final void setDragTime(int dragTime) {
		this.dragTime = dragTime;
	}
	@Override
	public void toTestCode(AbstractActionConverter actionConverter) {

	}
	
}
